#include "main.h"
#include "delay.h"
#include "FreeRTOS.h"
#include "task.h"
#include "extern_sdram.h"
#include "tli.h"
#include "lcd.h"
#include "string.h"
#include "touch.h"	
#include "iic.h"
#include "norFlash.h"
#include "spi.h"
#include "sdio_sdcard.h"
#include "sd_conf.h"
uint32_t sdBuf[512];
int main(void)
{
  delay_init(240);
	vsdramGpioInit();
	vsdramFunInit();
	vsdramPwrInit();
	vtliGpioInit();
	vtliFunInit();
	vlcdFillRange(0,0,LCD_PIX_WEIGHT,LCD_PIX_HEIGHT,0xFFFF);
	viicDrvInit();
	vtouchDrvInit();
	vlcdDrawStr(20,20,(uint8_t *)"touch",5,FONT_TYPE_64,0x8F5F);
	vspiDrvInit();
	xGetFlashID();
	
	
	sdio_sd_init();
	while(1)
	{
		vtouchScan();
		
	}
  
  
}

void SysTick_Handler(void)
{
	
	
}
